<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能体Solo模式 - 配置页面2</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            min-height: 100vh;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        .header {
            text-align: center;
            margin-bottom: 40px;
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        .header h1 {
            color: #2c3e50;
            font-size: 2.2em;
            margin: 0 0 10px 0;
            font-weight: 700;
        }
        .header p {
            color: #7f8c8d;
            font-size: 1.1em;
            margin: 0;
        }
        .card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .card h2 {
            color: #34495e;
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 1.6em;
            border-bottom: 3px solid #e74c3c;
            padding-bottom: 10px;
        }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
        }
        .form-group label {
            margin-bottom: 8px;
            font-weight: bold;
            color: #34495e;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #e74c3c;
        }
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        .submit-button {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
        }
        .submit-button:hover {
            background: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 7px 20px rgba(231, 76, 60, 0.4);
        }
        .tabs {
            display: flex;
            border-bottom: 2px solid #ddd;
            margin-bottom: 20px;
        }
        .tab-button {
            background: none;
            border: none;
            padding: 15px 25px;
            font-size: 16px;
            cursor: pointer;
            color: #7f8c8d;
            transition: all 0.3s ease;
            position: relative;
        }
        .tab-button.active {
            color: #e74c3c;
            font-weight: bold;
        }
        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #e74c3c;
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        .config-options {
            margin-top: 20px;
        }
        .option-group {
            margin-bottom: 25px;
        }
        .option-group h3 {
            color: #34495e;
            margin-bottom: 15px;
            font-size: 1.3em;
        }
        .checkbox-option {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        .checkbox-option input[type="checkbox"] {
            margin-right: 10px;
            width: 18px;
            height: 18px;
            accent-color: #e74c3c;
        }
        .checkbox-option label {
            font-size: 16px;
            color: #555;
        }
        .slider-option {
            margin-bottom: 15px;
        }
        .slider-option label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #34495e;
        }
        .slider-option input[type="range"] {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #ddd;
            outline: none;
            -webkit-appearance: none;
        }
        .slider-option input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #e74c3c;
            cursor: pointer;
        }
        .slider-option input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #e74c3c;
            cursor: pointer;
        }
        .slider-value {
            text-align: right;
            font-weight: bold;
            color: #e74c3c;
            margin-top: 5px;
        }
        .navigation {
            text-align: center;
            margin-top: 40px;
        }
        .nav-button {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 12px 30px;
            margin: 0 10px;
            border-radius: 30px;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
        }
        .nav-button:hover {
            background: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 7px 20px rgba(231, 76, 60, 0.4);
        }
        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            background: #f8f9fa;
            border-left: 4px solid #3498db;
        }
        .alert.info {
            border-left-color: #3498db;
            background: #e3f2fd;
        }
        .alert.success {
            border-left-color: #2ecc71;
            background: #e8f5e9;
        }
        .alert.warning {
            border-left-color: #f39c12;
            background: #fff3cd;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>⚙️ Solo模式高级配置</h1>
            <p>自定义智能体行为和系统参数</p>
        </div>
        
        <div class="alert info">
            <strong>💡 提示：</strong> 在此页面可以配置Solo模式的高级选项，调整智能体的行为参数和系统性能设置。
        </div>
        
        <div class="card">
            <h2>Solo模式系统配置</h2>
            <div class="form-grid">
                <div class="form-group">
                    <label for="maxConcurrentTasks">最大并发任务数</label>
                    <input type="number" id="maxConcurrentTasks" value="3" min="1" max="10">
                </div>
                <div class="form-group">
                    <label for="defaultTimeout">默认超时时间(毫秒)</label>
                    <input type="number" id="defaultTimeout" value="60000" min="1000">
                </div>
                <div class="form-group">
                    <label for="logLevel">日志级别</label>
                    <select id="logLevel">
                        <option value="debug">Debug</option>
                        <option value="info" selected>Info</option>
                        <option value="warn">Warn</option>
                        <option value="error">Error</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="taskQueueSize">任务队列大小</label>
                    <input type="number" id="taskQueueSize" value="100" min="10" max="1000">
                </div>
            </div>
            <button class="submit-button">保存系统配置</button>
        </div>
        
        <div class="card">
            <h2>智能体配置</h2>
            <div class="tabs">
                <button class="tab-button active">侦探助手</button>
                <button class="tab-button">人物剖析专家</button>
                <button class="tab-button">添加新智能体</button>
            </div>
            
            <div class="tab-content active">
                <div class="option-group">
                    <h3>侦探助手参数设置</h3>
                    <div class="form-grid">
                        <div class="form-group">
                            <label for="detectiveConfidenceThreshold">置信度阈值</label>
                            <input type="range" id="detectiveConfidenceThreshold" min="0" max="1" step="0.05" value="0.6">
                            <div class="slider-value">0.6</div>
                        </div>
                        <div class="form-group">
                            <label for="detectiveMaxEvidence">最大证据数量</label>
                            <input type="number" id="detectiveMaxEvidence" value="50" min="5" max="200">
                        </div>
                    </div>
                    
                    <div class="checkbox-option">
                        <input type="checkbox" id="enableContradictionCheck" checked>
                        <label for="enableContradictionCheck">启用矛盾检测功能</label>
                    </div>
                    <div class="checkbox-option">
                        <input type="checkbox" id="enableAutoReasoning" checked>
                        <label for="enableAutoReasoning">启用自动推理功能</label>
                    </div>
                    <div class="checkbox-option">
                        <input type="checkbox" id="enableVisualization">
                        <label for="enableVisualization">启用结果可视化</label>
                    </div>
                </div>
                <button class="submit-button">保存侦探助手配置</button>
            </div>
            
            <div class="tab-content">
                <div class="option-group">
                    <h3>人物剖析专家参数设置</h3>
                    <div class="form-grid">
                        <div class="form-group">
                            <label for="profileConfidenceThreshold">分析置信度阈值</label>
                            <input type="range" id="profileConfidenceThreshold" min="0" max="1" step="0.05" value="0.7">
                            <div class="slider-value">0.7</div>
                        </div>
                        <div class="form-group">
                            <label for="profileDepth">分析深度</label>
                            <select id="profileDepth">
                                <option value="basic">基础</option>
                                <option value="medium" selected>中等</option>
                                <option value="deep">深度</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="checkbox-option">
                        <input type="checkbox" id="enablePersonalityTraits" checked>
                        <label for="enablePersonalityTraits">启用性格特征分析</label>
                    </div>
                    <div class="checkbox-option">
                        <input type="checkbox" id="enableMotivationAnalysis" checked>
                        <label for="enableMotivationAnalysis">启用动机分析</label>
                    </div>
                    <div class="checkbox-option">
                        <input type="checkbox" id="enableBehaviorPrediction" checked>
                        <label for="enableBehaviorPrediction">启用行为预测</label>
                    </div>
                </div>
                <button class="submit-button">保存人物剖析专家配置</button>
            </div>
            
            <div class="tab-content">
                <div class="alert warning">
                    <strong>⚠️ 注意：</strong> 添加新智能体需要提供完整的配置信息，并确保有相应的实现类。
                </div>
                <div class="form-grid">
                    <div class="form-group">
                        <label for="newAgentId">智能体ID</label>
                        <input type="text" id="newAgentId" placeholder="输入智能体唯一ID">
                    </div>
                    <div class="form-group">
                        <label for="newAgentName">智能体名称</label>
                        <input type="text" id="newAgentName" placeholder="输入智能体名称">
                    </div>
                    <div class="form-group">
                        <label for="newAgentType">智能体类型</label>
                        <input type="text" id="newAgentType" placeholder="输入智能体类型">
                    </div>
                    <div class="form-group">
                        <label for="newAgentClass">实现类路径</label>
                        <input type="text" id="newAgentClass" placeholder="输入实现类的相对路径">
                    </div>
                </div>
                <div class="form-group">
                    <label for="newAgentDescription">智能体描述</label>
                    <textarea id="newAgentDescription" placeholder="描述这个智能体的功能和用途"></textarea>
                </div>
                <div class="form-group">
                    <label for="newAgentCapabilities">核心能力（用逗号分隔）</label>
                    <input type="text" id="newAgentCapabilities" placeholder="如：analysis,prediction,reasoning">
                </div>
                <button class="submit-button">添加新智能体</button>
            </div>
        </div>
        
        <div class="navigation">
            <button class="nav-button" onclick="window.location.href='config-page-1.html'">上一页</button>
            <button class="nav-button" onclick="window.location.href='config-page-3.html'">下一页</button>
        </div>
    </div>
</body>
</html>